package entity

import ()

type Content struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	EbikeTypeId int64 `gorm:"column:ebike_type_id;type:BIGINT" json:"ebike_type_id"`

	Type int `gorm:"column:type;type:TINYINT" json:"type"`

	Kind int `gorm:"column:kind;type:TINYINT" json:"kind"`

	Title string `gorm:"column:title;type:VARCHAR(255)" json:"title"`

	Content string `gorm:"column:content;type:VARCHAR(255)" json:"content"`

	Country string `gorm:"column:country;type:VARCHAR(255)" json:"country"`

	Language string `gorm:"column:language;type:VARCHAR(255)" json:"language"`

	Url string `gorm:"column:url;type:VARCHAR(255)" json:"url"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Content) TableName() string {
	return "contents"
}
